<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>PaleGem: Inc/pgEventManager.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">PaleGem
   &#160;<span id="projectnumber">0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f93dfce691d792349f1c14ede440e2e6.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">pgEventManager.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="pg_event_manager_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef _PGEVENTMANAGER_H_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define _PGEVENTMANAGER_H_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="code" href="pg_event_manager_8h.html#ab8052801aa56013f3451e780c778f412">    4</a></span>&#160;<span class="preprocessor">#define g_PG_pFrameworkEventManager g_PG_pPaleGemFramework-&gt;GetFrameworkEventManager()</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include&lt;list&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_pale_gem_8h.html">PaleGem.h</a>&quot;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_singleton_8h.html">Singleton.h</a>&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_i_event_listener_8h.html">IEventListener.h</a>&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include&quot;<a class="code" href="_i_event_manager_8h.html">IEventManager.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="code" href="struct_s_listener_ex.html">   12</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_s_listener_ex.html">SListenerEx</a> : <span class="keyword">public</span> <a class="code" href="struct_i_listener_ex.html" title="Structure used to create event listeners.">IListenerEx</a></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;{</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="code" href="struct_s_listener_ex.html#aade661b697e4396afd3475aacc4d2404">   14</a></span>&#160;    <a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a>* <a class="code" href="struct_s_listener_ex.html#aade661b697e4396afd3475aacc4d2404">registeredObject</a>;</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="code" href="struct_s_listener_ex.html#a5ced8f87301eb277604e41520f997d10">   15</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct_s_listener_ex.html#a5ced8f87301eb277604e41520f997d10">registeredEvent</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="code" href="struct_s_listener_ex.html#ad93c907abec0c5c0e0661e5acf747f99">   16</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="struct_s_listener_ex.html#ad93c907abec0c5c0e0661e5acf747f99">registeredClass</a>;</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="code" href="struct_s_listener_ex.html#a6e16f9310bbe797a84dfa0c89bd38cee">   18</a></span>&#160;    <a class="code" href="struct_s_listener_ex.html#a6e16f9310bbe797a84dfa0c89bd38cee">SListenerEx</a>():  <a class="code" href="struct_s_listener_ex.html#a5ced8f87301eb277604e41520f997d10">registeredEvent</a> (<a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a0bdce79d948b8215713bcf669df0b8f1" title="Use this to enable per frame updates.">E_UNKNOWN</a>), <a class="code" href="struct_s_listener_ex.html#ad93c907abec0c5c0e0661e5acf747f99">registeredClass</a>(<a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a230d22d3c096db888df52a0e5d5ba7ac" title="A generic class.">EC_UNKNOWN</a>){<a class="code" href="struct_s_listener_ex.html#aade661b697e4396afd3475aacc4d2404">registeredObject</a>=NULL;}</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;};</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="classpg_event_manager.html">   32</a></span>&#160;<span class="keyword">class </span><a class="code" href="_pale_gem_8h.html#ab5e0a0a7e1c934d91f3c922b909c07e7">PALEGEM_API</a> <a class="code" href="classpg_event_manager.html" title="PaleGem&#39;s generic event manager.">pgEventManager</a></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="keywordtype">void</span> FireEvents();</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <span class="keywordtype">void</span> FireCriticalErrorEvent();</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="classpg_event_manager.html#a6bb8e223e41d32c6659ad1d1ae71e205">   47</a></span>&#160;    std::list&lt;SListenerEx*&gt; <a class="code" href="classpg_event_manager.html#a6bb8e223e41d32c6659ad1d1ae71e205" title="Here all listeners are queued.">extendedRegister</a>;</div>
<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="classpg_event_manager.html#a9d1c1cd6a5c90f36a5f975fbc780fcff">   49</a></span>&#160;    std::list&lt;IEvent*&gt;  <a class="code" href="classpg_event_manager.html#a9d1c1cd6a5c90f36a5f975fbc780fcff" title="Here all events are queued.">eventQueue</a>; </div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="classpg_event_manager.html#afc696019a80edb2f678a7626e61dd951">   51</a></span>&#160;    std::list&lt;IEventListener*&gt; <a class="code" href="classpg_event_manager.html#afc696019a80edb2f678a7626e61dd951" title="Used for listeners who only want to receive critical error events.">errorListeners</a>;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <a class="code" href="classpg_event_manager.html" title="PaleGem&#39;s generic event manager.">pgEventManager</a>();</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    ~<a class="code" href="classpg_event_manager.html" title="PaleGem&#39;s generic event manager.">pgEventManager</a>();</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">void</span> ShutDown();</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">void</span> Update(<span class="keywordtype">float</span> frameTime);</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">void</span> RegisterListener(<a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a>* listener, <span class="keywordtype">int</span> eventClass = <a class="code" href="_i_event_manager_8h.html#ab13f1eb4f7990ad6a97263126b1e8565a230d22d3c096db888df52a0e5d5ba7ac" title="A generic class.">EC_UNKNOWN</a>, <span class="keywordtype">int</span> eventName = <a class="code" href="_i_event_manager_8h.html#acebeb2e728025f3444b405355a3f8e92a0bdce79d948b8215713bcf669df0b8f1" title="Use this to enable per frame updates.">E_UNKNOWN</a> );</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    <span class="keywordtype">void</span> UnregisterListener(<a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a>* listener);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keywordtype">void</span> RegisterEvent(<span class="keywordtype">int</span> eventName, <span class="keywordtype">int</span> eventClass, <a class="code" href="struct_i_event_data.html" title="Data structure that can be used to send data with events.">IEventData</a> *pData);</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">void</span> RegisterCriticalErrorListener(<a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a> *pListener);</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keywordtype">void</span> UnregisterCriticalErrorListener(<a class="code" href="class_i_event_listener.html" title="Holds the OnEvent function.">IEventListener</a> *pListener);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;};</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 1 2013 11:55:07 for PaleGem by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3.1
</small></address>
</body>
</html>
